home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
tools
/
czesc_3
/
parex
/
parexscripts
/
stripctrl.pxs
< prev
next >
Wrap
Text File
|
1993-11-24
|
1KB
|
34 lines
; PARex v3.xx script: "PAREX:StripCTRL.pxs"
; ~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
; Update: 13-Nov-93
; $VER: StripCTRL.pxs 39.004 (13.11.93) PARex v3.xx script for StripCTRL.
; NOTE: not all AmigaDOS print control sequences are catched here! Only the
; most common will be discarded. One can easily append this script
; to strip other control sequences as well!
REPL \ec BY "" CASE FIXCASE
REPL \e[?m|\e[??m BY "" CASE FIXCASE WILD ; (1)
REPL \e[?v BY "" CASE FIXCASE WILD
REPL \e[?w BY "" CASE FIXCASE WILD
REPL "\e[?\"z" BY "" CASE FIXCASE WILD ; '".."' used since '\"' appears
REPL \e[?p BY "" CASE FIXCASE WILD
REPL \r BY "" ; remove CR's ($0D)
EXITPXS ; just let PARex know it can stop reading the script from here...
; --Comments--
o CASE is used to denote that we need to check on a case-sensitive basis. The use
of FIXCASE is used to indicate that now matter what program options are used,
the command must be checked case-sensitive!
o (1) Don't use "#?" or "*" wildcards since PARex could then also discard some
characters of the text itself. E.g. "\e[2vDummyText" would result in "myText"
instead of DUMMYTEXT, since the searching for "\e[*v" is done after "\e[*m"
has failed, and since a wildcard is used, PARex would also search in the text
itself! So be aware how you define your searchStrings!